package net.sxnic.jhitem.basesubject;

import net.sxinfo.core.entity.AbstractEntity;
import javax.persistence.*;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name = "jh_base_subject")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class BaseSubject extends AbstractEntity {
	
	private static final long serialVersionUID = 1L;
	

	//columns START
	// 学科组编码
	@Column(length=20)
	private String subjectCode;
	// 学科组名称
	private String subjectName;
	//columns END

	
	public BaseSubject()
	{
		super();
	}
	
	public String getSubjectCode() {
		return this.subjectCode;
	}
	
	public void setSubjectCode(String value) {
		this.subjectCode = value;
	}
	
	public String getSubjectName() {
		return this.subjectName;
	}
	
	public void setSubjectName(String value) {
		this.subjectName = value;
	}
	
}

